package entity;
import java.math.BigDecimal;

public class Goods {
    int id;
    BigDecimal price;
    String goodName;
    String image;

    public Goods() {
    }

    public Goods(int id, BigDecimal price, String goodName, String image) {
        this.id = id;
        this.price = price;
        this.goodName = goodName;
        this.image = image;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return goodName
     */
    public String getGoodName() {
        return goodName;
    }

    /**
     * 设置
     * @param goodName
     */
    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    /**
     * 获取
     * @return image
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置
     * @param image
     */
    public void setImage(String image) {
        this.image = image;
    }

    public String toString() {
        return "Goods{id = " + id + ", price = " + price + ", goodName = " + goodName + ", image = " + image + "}";
    }
}
